<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps WMSLayer</title>
     <link href="http://bpgeo.googlecode.com/svn/trunk/google_wms/legend.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript"> alert = function(){};</script>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAyTERmRqYwOf1Ee4AOegF9xRetjBGwIc4P8WeP1_N5D3zVtRAghTq2bWtMtKxZqoMqxbAgmbuen4Nmw"
      type="text/javascript"></script>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAyTERmRqYwOf1Ee4AOegF9xSdKEdXMaiUNGBdECLKZUBd9VRTpBSPm45qgbjWklL85wavs00czt952w"
      type="text/javascript"></script>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAyTERmRqYwOf1Ee4AOegF9xRyjc-JUyMkOgIP3Bd23FHRx1Wr4xQ-oR1OnxExEdglcGofenjIWr493g"
      type="text/javascript"></script>
    <script type="text/javascript" src="google-wms.js"></script>
    <script type="text/javascript">

    //<![CDATA[
    var map;
    var mt;
    var fires;
    function load() {
        map = new GMap2(document.getElementById("map"),  { draggableCursor: 'pointer' } );

        fires = new GWMS.Layer("http://169.229.201.200/cgi-bin/mapserv?map=/opt/web/fire/wms_frap.map&", {LAYERS:'FRAP,COUNTIES'}, "CA Fire Risk");
        fires.opacity = 0.8;
        
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());

        map.setCenter(new GLatLng(37.35655, -120.797144), 10);
        var wmscontrol = new WMSControl();
        map.addControl(wmscontrol);
        wmscontrol.addWMSLayer(fires,1);


        /* QUERY WITH getFeatureInfo(point, fires) */
        GEvent.addListener(map,"click", function(overlay,point) {     
            map.getFeatureInfo(point, fires);
        });
    }


    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <h3>Click The Map To Query (works on same host, or with proxy)</h3>
    <div id="map" style="width: 600px; height: 500px"></div>
  </body>
</html>
